import Vue from 'vue'
import vuex from 'vuex'

Vue.use(vuex);

const state= {
    count: 0,
    classinfo:{},
    userinfo: {},
    
};
const mutations = {
    saveUserInfo(state, userInfo){
        state.userinfo = userInfo;
    },
    saveClassinfo(state, classinfo){
        state.classinfo = classinfo;
    }
}

export default new vuex.Store({
    state,
    mutations
})
